<template>
	<view class="contain">
		<view class="item" v-for="item in articleCollect" :key="item.id">
			<image :src="item.coverImg?item.coverImg: '../../../static/image/noImage.jpg' " mode="scaleToFill"></image>
			<text>{{item.title}}</text>
		</view>
		<view class="line">
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				articleCollect: []
			}
		},
		methods: {
			
		},
		onLoad() {
			this.articleCollect = uni.getStorageSync('havecollectArticleList') || [];
			console.log(this.articleCollect);
		}
	}
</script>

<style lang="scss" scoped>
	.contain {
		display: flex;
		width: 95%;
		margin: auto;
		justify-content: space-between;
		flex-wrap: wrap;
		view {
			width: 48%;
			text-align: center;
			margin-top: 40rpx;
			border-radius: 20rpx;
			overflow: hidden;
			background-color: #fff;
			image {
				width: 100%;
				height: 300rpx;
			}
			text {
				display: block;
				box-sizing: content-box;
				padding: 20rpx;
			}
		}
	}
</style>